package com.pattern.structure.composite;

/**
 * @author yangguanzan
 * @date 7/2/22
 * @description
 */
public interface CompositeComponent {


    void add(CompositeComponent treeNode);

    void operation();

    void remove(CompositeComponent leaf2);

    CompositeComponent getChild(int i);
}
